<div style="width:100px;height:100px;border:1px solid black">HELLO WORLD</div>

<!-- <script src="../src/zepto.js"></script>
<script src="../src/event.js"></script>
<script src="../src/fx.js"></script>
<script src="../src/ajax.js"></script> -->

<script src="https://www.omipay.com.cn/lib/jquery/jquery.js"></script>

<!-- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.3/jquery.xdomainrequest.min.js"></script> -->

<script>
  // $('div').anim({ rotate: '720deg', opacity: .5 }, 2, 'ease-out')

  console.log("window.XMLHttpRequest", window.XMLHttpRequest == true, window.XMLHttpRequest);

  console.log("ActiveXObject", window.ActiveXObject == true, window.ActiveXObject);

  console.log("XDomainRequest", window.XDomainRequest == true, window.XDomainRequest);
  // XDomainRequest 在window11中是未定义的

  // console.log("$.ajax",$.ajax);

  $.ajax({
  url: 'http://172.18.8.39:8009/api/system/unread_message_count/',
  data: {"token":"26af798886c7457ab15016a7d86f51ea"},
  // contentType: 'text/plain',
  type: 'POST',
  // contentType: "application/json;charset=UTF-8",
  // dataType: 'json'
  }).done(function(data) {
    console.log(data);
  });

  $.ajax({
    type: "POST",
    url: "http://172.18.8.39:8009/api/system/unread_message_count/",
    // timeout : 10000,
    // async: false,
    // contentType: "application/json;charset=UTF-8",
    // crossDomain: true ,
    data: JSON.stringify({"token":"26af798886c7457ab15016a7d86f51ea"}),
    success: function (res) {
        console.log("res",res);
    },
    error: function (err) {
        console.log("访问错误:",err);
        if(err.status == 0){
                          
        }
    }
  })
</script>
